import os
import sys

# 当前Mys所在目录
cur_root = '/'

# 判断是否存在相对路径
def judgePath(path, root_path):
    print(path)


def shell(username, password, root_path):
    while True:
        ipt = input("\033[34m%s\033[0m:/$ " % username)
        ipt = ipt.strip()
        if ipt[-1]+ipt[-2] == "jj":
            continue
        elif ipt[0]+ipt[1] == 'cd':
            judgePath(ipt.split(' ', 1)[1], root_path)
        # os.system(ipt)